<?php

/**
 * +------ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER * ---------+
 * +----------------------------------------------------------------------------+
 * | PHPKiisf - Keep It in Simple Framework                                     |
 * | Version 1.0                                                                |
 * | Copyright (C) <2013>  Mario Cezzare mcezzare@gmail.com                   |
 * | Blog: http://mcezzare.blogspot.com.br                                      |
 * |                                                                            |
 * | This program is part of PHPKiisf, and is free software: you can            |
 * | redistribute it and/or modify it under the terms of the GNU                |
 * | General Public License as published by                                     |
 * | the Free Software Foundation, either version 3 of the License, or          |
 * | (at your option) any later version.                                        |
 * |                                                                            |
 * | This program is distributed in the hope that it will be useful,            |
 * | but WITHOUT ANY WARRANTY; without even the implied warranty of             |
 * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              |
 * | GNU General Public License for more details.                               |
 * | You should have received a copy of the GNU General Public License          |
 * | along with this program.  If not, see http://www.gnu.org/licenses/.        |
 * +----------------------------------------------------------------------------+
 * | Author : name - e mail ;                           |
 * +----------------------------------------------------------------------------+
 * | Contributors                                                               |
 * |                                                                            |
 * +----------------------------------------------------------------------------+
 *
 */
/**
 * @package Models
 * @access  public
 * @since   2013-10-06 01:43:41
 * @author  Mario Cezzare mcezzare@gmail.com
 */

/**
 * Description of demo_table
 */
class demo_table extends default_model {

	public function __construct() {
		$this->set_init_table_name( "demo_table" ) ;
		parent::__construct() ;
		$this->config = array(
			'table' =>
			array(
				0 =>
				array(
					'INDEX' => 0 ,
					'TABLE_CATALOG' => 'def' ,
					'TABLE_SCHEMA' => 'phpkiisf_demo' ,
					'TABLE_NAME' => 'demo_table' ,
					'TABLE_TYPE' => 'BASE TABLE' ,
					'ENGINE' => 'InnoDB' ,
					'VERSION' => '10' ,
					'ROW_FORMAT' => 'Compact' ,
					'TABLE_ROWS' => '0' ,
					'AVG_ROW_LENGTH' => '0' ,
					'DATA_LENGTH' => '16384' ,
					'MAX_DATA_LENGTH' => '0' ,
					'INDEX_LENGTH' => '16384' ,
					'DATA_FREE' => '10485760' ,
					'AUTO_INCREMENT' => '1' ,
					'CREATE_TIME' => '2013-10-05 20:20:03' ,
					'UPDATE_TIME' => NULL ,
					'CHECK_TIME' => NULL ,
					'TABLE_COLLATION' => 'latin1_swedish_ci' ,
					'CHECKSUM' => NULL ,
					'CREATE_OPTIONS' => '' ,
					'TABLE_COMMENT' => 'Table to phpkiisf_demo' ,
				) ,
			) ,
			'fields' =>
			array(
				0 =>
				array(
					'index' => 0 ,
					'table_name' => 'demo_table' ,
					'field' => 'id' ,
					'type' => 'bigint(20) unsigned' ,
					'collation' => NULL ,
					'null' => 'NO' ,
					'key' => 'PRI' ,
					'default' => NULL ,
					'extra' => 'auto_increment' ,
					'privileges' => 'select,insert,update,references' ,
					'comment' => '' ,
				) ,
				1 =>
				array(
					'index' => 1 ,
					'table_name' => 'demo_table' ,
					'field' => 'name' ,
					'type' => 'varchar(90)' ,
					'collation' => 'latin1_swedish_ci' ,
					'null' => 'NO' ,
					'key' => '' ,
					'default' => NULL ,
					'extra' => '' ,
					'privileges' => 'select,insert,update,references' ,
					'comment' => '' ,
				) ,
				2 =>
				array(
					'index' => 2 ,
					'table_name' => 'demo_table' ,
					'field' => 'email' ,
					'type' => 'varchar(120)' ,
					'collation' => 'latin1_swedish_ci' ,
					'null' => 'NO' ,
					'key' => 'UNI' ,
					'default' => NULL ,
					'extra' => '' ,
					'privileges' => 'select,insert,update,references' ,
					'comment' => '' ,
				) ,
				3 =>
				array(
					'index' => 3 ,
					'table_name' => 'demo_table' ,
					'field' => 'active' ,
					'type' => 'tinyint(1)' ,
					'collation' => NULL ,
					'null' => 'NO' ,
					'key' => '' ,
					'default' => NULL ,
					'extra' => '' ,
					'privileges' => 'select,insert,update,references' ,
					'comment' => '' ,
				) ,
				4 =>
				array(
					'index' => 4 ,
					'table_name' => 'demo_table' ,
					'field' => 'large_data' ,
					'type' => 'text' ,
					'collation' => 'latin1_swedish_ci' ,
					'null' => 'NO' ,
					'key' => '' ,
					'default' => NULL ,
					'extra' => '' ,
					'privileges' => 'select,insert,update,references' ,
					'comment' => '' ,
				) ,
			) ,
			'indexes' =>
			array(
				0 =>
				array(
					'INDEX' => 0 ,
					'table' => 'demo_table' ,
					'non_unique' => '0' ,
					'key_name' => 'PRIMARY' ,
					'seq_in_index' => '1' ,
					'column_name' => 'id' ,
					'collation' => 'A' ,
					'cardinality' => '0' ,
					'sub_part' => NULL ,
					'packed' => NULL ,
					'null' => '' ,
					'index_type' => 'BTREE' ,
					'comment' => '' ,
				) ,
				1 =>
				array(
					'INDEX' => 1 ,
					'table' => 'demo_table' ,
					'non_unique' => '0' ,
					'key_name' => 'email' ,
					'seq_in_index' => '1' ,
					'column_name' => 'email' ,
					'collation' => 'A' ,
					'cardinality' => '0' ,
					'sub_part' => NULL ,
					'packed' => NULL ,
					'null' => '' ,
					'index_type' => 'BTREE' ,
					'comment' => '' ,
				) ,
			) ,
		) ;
	}

}

?>                          